﻿using B.S.EventHandle.ErrorCode;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.SmartStorPro.Domain
{
    /// <summary>
    /// 订单表
    /// </summary>
    public class Orders
    {
        /// <summary>
        /// 订单--主键
        /// </summary>
        /// 
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int OrderID {  get; set; }
        /// <summary>
        /// 订单编号
        /// </summary>
        /// 
        [MaxLength(50)]
        public string OrderCode {  get; set; }
        /// <summary>
        /// 产品ID--外键
        /// </summary>
        public int Productld { get; set; }
        /// <summary>
        /// 客户ID--外键
        /// </summary>
        public int Customerld { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }

        /// <summary>
        /// 单价
        /// </summary>
        public decimal UnitPrice { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        public decimal Total { get; set; }
        
        /// <summary>
        /// 状态
        /// </summary>
        public OrderStatus Status { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 是否删除(1-删除 0正常)
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
